package org.lifei.auth.service.impl;

import org.lifei.auth.domain.Permission;
import org.lifei.auth.mapper.PermissionMapper;
import org.lifei.auth.service.IPermissionService;
import org.lifei.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lifei
 * @since 2024-01-17
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {
@Autowired
private PermissionMapper mapper;

    @Override
    public void deleteAll() {
        mapper.deleteAll();
    }
    @Override
    public List<Permission> getTree() {

        return mapper.getTree();
    }
}
